﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="News.ascx.cs" Inherits="Sites_Vigor_Webparts_Pages_News" %>
<%@ Register Src="../Common/RightNews.ascx" TagName="RightNews" TagPrefix="uc3" %>
<%@ Register Src="../Common/RightAds.ascx" TagName="RightAds" TagPrefix="uc4" %>
<%@ Register Src="../Common/RightWorkingTime.ascx" TagName="RightWorkingTime" TagPrefix="uc1" %>
<%@ Register Src="../Common/RightVideo.ascx" TagName="RightVideo" TagPrefix="uc2" %>
<%@ Import Namespace="NTTHAO.CommonWeb" %>
<%@ Import Namespace="NTTHAO.Web.BL.CommonPage" %>
<div class="wrapper">
    <div style="clear: both;">
        <div class="bd-right">
            <uc1:RightWorkingTime ID="RightWorkingTime1" runat="server" />
            <uc2:RightVideo ID="RightVideo1" runat="server" />
            <uc3:RightNews ID="RightNews1" runat="server" />
            <uc4:RightAds ID="RightAds1" runat="server" />
        </div>
        <div class="bd-left">
            <div class="left-block">
                <div class="block-wrapper">
                    <h2 class="cat-title">
                        <span><%=Server.HtmlEncode(_RootMenu.Text) %></span>
                        <span class="sub-list"><%
    try
    {
        CommonGroupTree tree = CommonPageGroup.GetTree(this._Group.ID);
        CommonMenuNode node = tree.GetNode(_CurrentMenu.ParentID);
        if (node != null && node.Children != null )
        {
            string urlRoot = "/" + this._Group.URLName + "/" + CommonMenu.GetUrlPath(node.Menu.MenuPath + node.Menu.ID.ToString("0")) + "/";
            node = node.Children[0];
            while (node != null)
            {
                if (node.Menu.Active)
                {
                %>
            <a href="<%=urlRoot + node.Menu.URLText + "/" %>" class="item <%=node.Menu.ID == _CurrentMenu.ID ? "active" : "" %>"><%=Server.HtmlEncode(node.Menu.Text)%></a><%
                }
                node = node.NextNode;
            }
        }
    }
    catch { }
%>
                        </span>
                    </h2>
                    <div class="block-text-wrapper">
                        <div class="menu-path">
                            <div class="path-wrapper"><%
        //string urlPath = "/" + _Group.URLName + "/";
        for (int i = 0; i < _MenuPath.Count; i++) 
        {
            //urlPath += _MenuPath[i].URLText + "/";
    %><%if (i > 0) { %><span class="sepa"></span><%} %><span><%=Server.HtmlEncode(_MenuPath[i].Text)%></span><%
        } %></div>
                        </div>
                        <div class="news-wrapper" id="_Cont" runat="server">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
